<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>花龙腾航 - 联系我们</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');
        body { font-family: 'Noto Sans SC', sans-serif; background-color: #f9fafb; }
        .logo-text { background: linear-gradient(135deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
        .user-avatar { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
        .dropdown-menu { display: none; position: absolute; right: 0; top: 100%; background-color: white; border-radius: 0.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); min-width: 200px; z-index: 10; }

        .dropdown-item { padding: 0.5rem 1rem; cursor: pointer; transition: background-color 0.2s; }
        .dropdown-item:hover { background-color: #f3f4f6; }
        .fade-in { animation: fadeIn 0.5s ease-in-out; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    </style>
</head>
<body>
<!-- 头部 -->
<header class="bg-white shadow-sm sticky top-0 z-10">
    <div class="container mx-auto px-4 py-4 flex justify-between items-center">
        <div class="flex items-center space-x-2">
            <i class="fas fa-plane text-3xl text-blue-500"></i>
            <h1 class="text-2xl font-bold logo-text">花龙腾航</h1>
        </div>
        <nav class="hidden md:flex space-x-6">
            <a href="#" class="text-gray-600 hover:text-blue-500">控制台</a>
            <a href="#" class="text-gray-600 hover:text-blue-500">订单管理</a>
            <small> <a href="#" class="text-gray-600 hover:text-blue-500">航班管理</a>
                <a href="#" class="text-gray-600 hover:text-blue-500">用户管理</a>
                <a href="#" class="text-blue-500 font-medium">联系我们</a>
            </small>
        </nav>
        <div class="flex items-center space-x-4">
            <div class="relative">
                <i class="fas fa-bell text-gray-500 text-xl cursor-pointer hover:text-blue-500"></i>
                <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
            </div>
            <div class="flex items-center space-x-2 cursor-pointer relative" id="user-menu">
                <div class="h-8 w-8 rounded-full user-avatar flex items-center justify-center text-white">
                    <i class="fas fa-user-shield"></i>
                </div>
                <span class="hidden md:inline text-gray-700 hover:text-blue-500">管理员</span>
                <div class="dropdown-menu" id="dropdown-menu">
                    <div class="dropdown-item" onclick="location.href='#'"><i class="fas fa-user-cog mr-2"></i> 个人设置</div>
                    <div class="dropdown-item" onclick="location.href='#'"><i class="fas fa-cog mr-2"></i> 系统设置</div>
                    <div class="border-t border-gray-200 my-1"></div>
                    <div class="dropdown-item text-red-500" onclick="location.href='logout'"><i class="fas fa-sign-out-alt mr-2"></i> 退出登录</div>
                </div>
            </div>
        </div>
    </div>
</header>

<!-- 主要内容 -->
<main class="container mx-auto px-4 py-12">
    <div class="bg-white rounded-xl shadow-sm p-8 fade-in max-w-4xl mx-auto">
        <h2 class="text-3xl font-bold text-gray-800 mb-6 text-center">联系我们</h2>
        <div class="grid grid-cols-1 md:grid-cols-2 gap-12">
            <!-- 联系信息 -->
            <div>
                <h3 class="text-xl font-medium text-gray-700 mb-4">联系方式</h3>
                <ul class="space-y-4 text-gray-600">
                    <li class="flex items-center">
                        <i class="fas fa-phone-alt mr-3 text-blue-500"></i>
                        <span>电话: 400-888-8888</span>
                    </li>
                    <li class="flex items-center">
                        <i class="fas fa-envelope mr-3 text-blue-500"></i>
                        <span>邮箱: service@hualong.com</span>
                    </li>
                    <li class="flex items-center">
                        <i class="fas fa-map-marker-alt mr-3 text-blue-500"></i>
                        <span>地址: 北京市朝阳区花龙大厦</span>
                    </li>
                </ul>
                <div class="mt-6">
                    <h3 class="text-xl font-medium text-gray-700 mb-2">关注我们</h3>
                    <div class="flex space-x-4">
                        <a href="#" class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-500 hover:bg-blue-200 transition"><i class="fab fa-weixin"></i></a>
                        <a href="#" class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-500 hover:bg-blue-200 transition"><i class="fab fa-weibo"></i></a>
                        <a href="#" class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-500 hover:bg-blue-200 transition"><i class="fab fa-qq"></i></a>
                    </div>
                </div>
            </div>
            <!-- 联系表单 -->
            <div>
                <h3 class="text-xl font-medium text-gray-700 mb-4">发送消息</h3>
                <form class="space-y-6">
                    <div>
                        <label for="name" class="block text-sm font-medium text-gray-700">姓名</label>
                        <input type="text" id="name" class="w-full border border-gray-300 rounded-lg px-4 py-2 mt-1 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 shadow-sm" placeholder="请输入您的姓名" style="color: black;">
                    </div>
                    <div>
                        <label for="email" class="block text-sm font-medium text-gray-700">邮箱</label>
                        <input type="email" id="email" class="w-full border border-gray-300 rounded-lg px-4 py-2 mt-1 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 shadow-sm" placeholder="请输入您的邮箱" style="color: black;">
                    </div>
                    <div>
                        <label for="message" class="block text-sm font-medium text-gray-700">消息</label>
                        <textarea id="message" class="w-full border border-gray-300 rounded-lg px-4 py-2 mt-1 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 shadow-sm" rows="4" placeholder="请输入您的消息" style="color: black;"></textarea>
                    </div>
                    <button type="submit" class="w-full bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white px-4 py-2 rounded-lg transition shadow-md">提交</button>
                </form>
            </div>
        </div>
    </div>
</main>

<!-- 尾部 -->
<footer class="bg-gray-50 mt-12 py-8">
    <div class="container mx-auto px-4 text-center text-sm text-gray-500">
        <p>© 2023 花龙腾航航空公司 版权所有 | 京ICP备12345678号</p>
        <div class="flex justify-center space-x-4 mt-2">
            <a href="#" class="text-blue-500 hover:text-blue-600"><i class="fab fa-weixin"></i></a>
            <a href="#" class="text-blue-500 hover:text-blue-600"><i class="fab fa-weibo"></i></a>
            <a href="#" class="text-blue-500 hover:text-blue-600"><i class="fab fa-qq"></i></a>
        </div>
    </div>
</footer>

<script>
    document.getElementById('user-menu').addEventListener('click', function() {
        document.getElementById('dropdown-menu').classList.toggle('open');
    });
    document.addEventListener('click', function(event) {
        const dropdown = document.getElementById('dropdown-menu');
        const userMenu = document.getElementById('user-menu');
        if (!userMenu.contains(event.target) && !dropdown.contains(event.target)) {
            dropdown.classList.remove('open');
        }
    });
</script>
</body>
</html>